package com.heima.feign.user;

import com.heima.feign.config.DefaultFeignConfiguration;
import com.heima.model.user.pojos.ApUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


/**
 * @Auther: Tangguo
 * @Date: 2023-06-28  16:04
 */
@FeignClient(value = "leadnews-user", configuration = DefaultFeignConfiguration.class)
public interface IUserClient {


    @GetMapping("/api/v1/user/{id}")
    public ApUser findUserById(@PathVariable("id") Integer id);
}
